/*
  同 @error 类似
*/

$known-prefixes: webkit, moz, ms, o;

@mixin prefix($property, $value, $prefixes) {
  @each $prefix in $prefixes {
    @if not index($known-prefixes, $prefix) {
      @warn '未知的前缀: #{$prefix}.'
    }

    -#{$prefix}-#{$property}: $value;
  }

  #{$property}: $value;
}

.tilt {
  @include prefix(transform, rotate(15deg), webkit ms);
}
